//change to ASCII 

import java.io.*;
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scanner=new Scanner(System.in);

		while(true){
			System.out.print("inpupt name:");
			String name=scanner.next();
			System.out.print("inpupt code::");


			Erase erase=new Erase('#');			
			Thread eraseThread=new Thread(erase);
			eraseThread.start();

			String password=scanner.next();

			erase.setActive(false);


			if("baboo".equals(name) && "123".equals(password)){
				System.out.println("welcome");
				break;
			}
			else{
				System.out.println("error");
			}

		}
	}

}